<?php

class My_View_Helper_iButton extends Zend_View_Helper_HtmlElement {

    /**
     *
     * @param string $url
     * @param string $content
     * @param array|string $attribs
     * @return string 
     */
    public function iButton($name, $value,$valuecheck ,$attribs=null, $options=null)
    {
        $attribs['class']='iButton';
        if($value==$valuecheck){
            $attribs['checked']=true;
        }
        
        return  $this->view->formCheckbox($name, $value, $attribs, $options);
    }

}